home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python152_Src.lha / Python152_Source / Python / protos / compile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-25  |  6.0 KB  |  99 lines

  1. static PyObject *code_getattr ( PyCodeObject *co , char *name );
  2. static void code_dealloc ( PyCodeObject *co );
  3. static PyObject *code_repr ( PyCodeObject *co );
  4. static int code_compare ( PyCodeObject *co , PyCodeObject *cp );
  5. static long code_hash ( PyCodeObject *co );
  6. static void com_error ( struct compiling *c , PyObject *exc , char *msg );
  7. static void block_push ( struct compiling *c , int type );
  8. static void block_pop ( struct compiling *c , int type );
  9. static int com_init ( struct compiling *c , char *filename );
  10. static void com_free ( struct compiling *c );
  11. static void com_push ( struct compiling *c , int n );
  12. static void com_pop ( struct compiling *c , int n );
  13. static void com_done ( struct compiling *c );
  14. static void com_addbyte ( struct compiling *c , int byte );
  15. static void com_addint ( struct compiling *c , int x );
  16. static void com_add_lnotab ( struct compiling *c , int addr , int line );
  17. static void com_set_lineno ( struct compiling *c , int lineno );
  18. static void com_addoparg ( struct compiling *c , int op , int arg );
  19. static void com_addfwref ( struct compiling *c , int op , int *p_anchor );
  20. static void com_backpatch ( struct compiling *c , int anchor );
  21. static int com_add ( struct compiling *c , PyObject *list , PyObject *v );
  22. static int com_addconst ( struct compiling *c , PyObject *v );
  23. static int com_addname ( struct compiling *c , PyObject *v );
  24. static int com_mangle ( struct compiling *c , char *name , char *buffer , int maxlen );
  25. static void com_addopnamestr ( struct compiling *c , int op , char *name );
  26. static void com_addopname ( struct compiling *c , int op , node *n );
  27. static PyObject *parsenumber ( struct compiling *co , char *s );
  28. static PyObject *parsestr ( char *s );
  29. static PyObject *parsestrplus ( node *n );
  30. static void com_list_constructor ( struct compiling *c , node *n );
  31. static void com_dictmaker ( struct compiling *c , node *n );
  32. static void com_atom ( struct compiling *c , node *n );
  33. static void com_slice ( struct compiling *c , node *n , int op );
  34. static void com_argument ( struct compiling *c , node *n , PyObject **pkeywords );
  35. static void com_call_function ( struct compiling *c , node *n );
  36. static void com_select_member ( struct compiling *c , node *n );
  37. static void com_sliceobj ( struct compiling *c , node *n );
  38. static void com_subscript ( struct compiling *c , node *n );
  39. static void com_subscriptlist ( struct compiling *c , node *n , int assigning );
  40. static void com_apply_trailer ( struct compiling *c , node *n );
  41. static void com_power ( struct compiling *c , node *n );
  42. static void com_factor ( struct compiling *c , node *n );
  43. static void com_term ( struct compiling *c , node *n );
  44. static void com_arith_expr ( struct compiling *c , node *n );
  45. static void com_shift_expr ( struct compiling *c , node *n );
  46. static void com_and_expr ( struct compiling *c , node *n );
  47. static void com_xor_expr ( struct compiling *c , node *n );
  48. static void com_expr ( struct compiling *c , node *n );
  49. static enum cmp_op cmp_type ( node *n );
  50. static void com_comparison ( struct compiling *c , node *n );
  51. static void com_not_test ( struct compiling *c , node *n );
  52. static void com_and_test ( struct compiling *c , node *n );
  53. static void com_test ( struct compiling *c , node *n );
  54. static void com_list ( struct compiling *c , node *n , int toplevel );
  55. static void com_assign_attr ( struct compiling *c , node *n , int assigning );
  56. static void com_assign_trailer ( struct compiling *c , node *n , int assigning );
  57. static void com_assign_tuple ( struct compiling *c , node *n , int assigning );
  58. static void com_assign_list ( struct compiling *c , node *n , int assigning );
  59. static void com_assign_name ( struct compiling *c , node *n , int assigning );
  60. static void com_assign ( struct compiling *c , node *n , int assigning );
  61. static void com_expr_stmt ( struct compiling *c , node *n );
  62. static void com_assert_stmt ( struct compiling *c , node *n );
  63. static void com_print_stmt ( struct compiling *c , node *n );
  64. static void com_return_stmt ( struct compiling *c , node *n );
  65. static void com_raise_stmt ( struct compiling *c , node *n );
  66. static void com_import_stmt ( struct compiling *c , node *n );
  67. static void com_global_stmt ( struct compiling *c , node *n );
  68. static int com_newlocal_o ( struct compiling *c , PyObject *nameval );
  69. static int com_addlocal_o ( struct compiling *c , PyObject *nameval );
  70. static int com_newlocal ( struct compiling *c , char *name );
  71. static void com_exec_stmt ( struct compiling *c , node *n );
  72. static int is_constant_false ( struct compiling *c , node *n );
  73. static void com_if_stmt ( struct compiling *c , node *n );
  74. static void com_while_stmt ( struct compiling *c , node *n );
  75. static void com_for_stmt ( struct compiling *c , node *n );
  76. static void com_try_except ( struct compiling *c , node *n );
  77. static void com_try_finally ( struct compiling *c , node *n );
  78. static void com_try_stmt ( struct compiling *c , node *n );
  79. static node *get_rawdocstring ( node *n );
  80. static PyObject *get_docstring ( node *n );
  81. static void com_suite ( struct compiling *c , node *n );
  82. static void com_continue_stmt ( struct compiling *c , node *n );
  83. static int com_argdefs ( struct compiling *c , node *n );
  84. static void com_funcdef ( struct compiling *c , node *n );
  85. static void com_bases ( struct compiling *c , node *n );
  86. static void com_classdef ( struct compiling *c , node *n );
  87. static void com_node ( struct compiling *c , node *n );
  88. static void com_fpdef ( struct compiling *c , node *n );
  89. static void com_fplist ( struct compiling *c , node *n );
  90. static void com_arglist ( struct compiling *c , node *n );
  91. static void com_file_input ( struct compiling *c , node *n );
  92. static void compile_funcdef ( struct compiling *c , node *n );
  93. static void compile_lambdef ( struct compiling *c , node *n );
  94. static void compile_classdef ( struct compiling *c , node *n );
  95. static void compile_node ( struct compiling *c , node *n );
  96. static void optimize ( struct compiling *c );
  97. static PyCodeObject *icompile ( node *n , struct compiling *base );
  98. static PyCodeObject *jcompile ( node *n , char *filename , struct compiling *base );
  99.